<?php
/**
 * @author jonathan <jo.link.noir@gmail.com>
 * @version 1.0: jo_link_noir
 * @date 20-01-2010
 */
class U1_Building_Dependency extends SW_Structure_Dependency
{
	/** @var SW_Structure_Dependency_Tree : voir SW_Structure_Dependency*/
	static protected $dependencies;


	public function __construct()
	{
		if (!self::$dependencies)
		{
			self::$dependencies = new SW_Structure_Dependency_Tree(
				new ArrayIterator(array(
					0 => array(
						U1_Building::INDEX => array(
							1 => 27,
							2 => 25
						)
					),
					1 => true,
					2 => true,
					3 => true,
					4 => true,
					5 => true,
					6 => new ArrayIterator(array(
						'required' => true,
						'structures' => array(
							U1_Building::INDEX => array(
								1 => 3,
								5 => 7
							)
						)
					)),
					7 => array(
						U1_Building::INDEX => array(
							2 => 5,
							3 => 10,
							4 => 10
						)
					),
					8 => true,
					9 => array(
						U1_Building::INDEX => array(
							8 => 12
						)
					),
					10 => true,
					11 => new ArrayIterator(array(
						U1_Building::INDEX => array(
							1 => 3,
							2 => 7
						),
						U1_Research::INDEX => array(
							15 => 5,
							19 => 15
						)
					)),
					12 => array(
						U1_Building::INDEX => array(
							11 => 1
						)
					)
				))
			);
		}
		parent::__construct(self::$dependencies);
	}
}